//
//  BJShiPinButton.m
//  DangXiao
//
//  Created by APPLE on 16/12/6.
//  Copyright © 2016年 APPLE. All rights reserved.
//

#import "BJShiPinButton.h"

#define BtnFont 15
#define BtnWidth  (ScreenWidth - BILIWIDTH(30)) / 2

#define BtnHeight BILIHEIGHT(135)

@implementation BJShiPinButton
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initUI];
    }
    return self;
}

- (void)initUI{
    
    _imageViews = [Utils imageViewWithFrame:CGRectMake(BILIWIDTH(0), BILIHEIGHT(10), BtnWidth, BtnHeight) withImage:[UIImage imageNamed:@""]];
    _imageViews.backgroundColor = [UIColor greenColor];
    [self addSubview:_imageViews];
    
    _stopImageView = [[UIImageView alloc]init];
    _stopImageView.layer.cornerRadius = BILIWIDTH(45) / 2;
    _stopImageView.backgroundColor = BaseColor;
    [self addSubview:_stopImageView];
    [_stopImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(_imageViews.mas_centerX);
        make.centerY.equalTo(_imageViews.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(BILIWIDTH(45), BILIWIDTH(45)));

    }];
    
    
    _titleLablees = [Utils labelWithFrame:CGRectMake(BILIWIDTH(0), BILIHEIGHT(150), BtnWidth, BILIHEIGHT(20)) withTitle:@"驾驶的发生金士顿是经典款" titleFontSize:14 textColor:BlackTextColor backgroundColor:nil alignment:1];
    [self addSubview:_titleLablees];
}

@end
